import time
from datetime import datetime


now_time = time.time()
print now_time


timer = '2017-9-29 8:58:00'

target_time = time.mktime(time.strptime(timer, "%Y-%m-%d %H:%M:%S"))
print target_time


print (target_time-now_time)/3600


